
/* Filename:sum.c */
main() {
  int i, sum; 
  sum = 0;
  for (i = 0; i < 100; i++) {
    sum += i;
  }

  printf("the sum of 1+2+...+ is %d", sum);
}
